// admin/system/model/sys_dict_type.go
package model

import (
	"time"
)

// SysDictType 字典类型表
type SysDictType struct {
	DictID     int64      `json:"dict_id" gorm:"column:dict_id;primaryKey;autoIncrement;comment:字典主键"`
	DictName   string     `json:"dict_name" gorm:"column:dict_name;size:100;default:'';comment:字典名称"`
	DictType   string     `json:"dict_type" gorm:"column:dict_type;size:100;default:'';comment:字典类型"`
	Status     string     `json:"status" gorm:"column:status;size:1;default:'0';comment:状态（0正常 1停用）"`
	CreateBy   string     `json:"create_by" gorm:"column:create_by;size:64;default:'';comment:创建者"`
	CreateTime *time.Time `json:"create_time,omitempty" gorm:"column:create_time;comment:创建时间"`
	UpdateBy   string     `json:"update_by" gorm:"column:update_by;size:64;default:'';comment:更新者"`
	UpdateTime *time.Time `json:"update_time,omitempty" gorm:"column:update_time;comment:更新时间"`
	Remark     *string    `json:"remark,omitempty" gorm:"column:remark;size:500;comment:备注"`
}

// TableName 获取表名
func (SysDictType) TableName() string {
	return "sys_dict_type"
}
